﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Neoseeker.NAMFox.Tests
{
    /// <summary>
    /// Contains extension methods for strings.
    /// </summary>
    public static class StringExtensions
    {
        /// <summary>
        /// Converts a .NET string into one that would be used by a textarea
        /// by stripping all CR characters (\r).
        /// </summary>
        /// <param name="value">The string to convert.</param>
        /// <returns>The string equivalent you would find in a textarea element.</returns>
        public static string AsTextAreaString(this string value)
        {
            return value.Replace("\r", String.Empty);
        }
    }
}
